#!/usr/bin/env python
# -*- coding:utf-8 -*-

from .apiVersionResource import apiversion_blueprint
from .administratorResource import administrator_blueprint
from .experimentResource import experiment_blueprint
from .teacherGradeResource import teachergrade_blueprint
from .teacherResource import teacher_blueprint
from .groupResource import group_blueprint
from .fileResource import file_blueprint
from .equipmentResource import equipment_blueprint
from .studentResource import student_blueprint
from .lessonResource import lesson_blueprint
from .groupGradeResource import groupgrade_blueprint
from .adminExperimentmanagementResource import adminexperimentmanagement_blueprint
from .studentExperimentmanagementResource import studentexperimentmanagement_blueprint
from .teacherStudentmanagementResource import teacherstudentmanagement_blueprint
from .commonResource import adminlogin_blueprint
from .fileTeacherGradeResource import fileteachergrade_blueprint
from .studentGroupGradeResource import studentgroupgrade_blueprint
from .totalGradeResource import totalgrade_blueprint


def init_router(app):

    from api_1_0.apiVersionResource import apiversion_blueprint
    app.register_blueprint(apiversion_blueprint, url_prefix="/api_1_0")

    # administrator blueprint register
    from api_1_0.administratorResource import administrator_blueprint
    app.register_blueprint(administrator_blueprint, url_prefix="/api_1_0")
    
    # experiment blueprint register
    from api_1_0.experimentResource import experiment_blueprint
    app.register_blueprint(experiment_blueprint, url_prefix="/api_1_0")
    
    # teacherGrade blueprint register
    from api_1_0.teacherGradeResource import teachergrade_blueprint
    app.register_blueprint(teachergrade_blueprint, url_prefix="/api_1_0")
    
    # teacher blueprint register
    from api_1_0.teacherResource import teacher_blueprint
    app.register_blueprint(teacher_blueprint, url_prefix="/api_1_0")
    
    # group blueprint register
    from api_1_0.groupResource import group_blueprint
    app.register_blueprint(group_blueprint, url_prefix="/api_1_0")
    
    # file blueprint register
    from api_1_0.fileResource import file_blueprint
    app.register_blueprint(file_blueprint, url_prefix="/api_1_0")
    
    # equipment blueprint register
    from api_1_0.equipmentResource import equipment_blueprint
    app.register_blueprint(equipment_blueprint, url_prefix="/api_1_0")
    
    # student blueprint register
    from api_1_0.studentResource import student_blueprint
    app.register_blueprint(student_blueprint, url_prefix="/api_1_0")
    
    # lesson blueprint register
    from api_1_0.lessonResource import lesson_blueprint
    app.register_blueprint(lesson_blueprint, url_prefix="/api_1_0")
    
    # groupGrade blueprint register
    from api_1_0.groupGradeResource import groupgrade_blueprint
    app.register_blueprint(groupgrade_blueprint, url_prefix="/api_1_0")
    
    # adminExperimentmanagement blueprint register
    from api_1_0.adminExperimentmanagementResource import adminexperimentmanagement_blueprint
    app.register_blueprint(adminexperimentmanagement_blueprint, url_prefix="/api_1_0")
    
    # studentExperimentmanagement blueprint register
    from api_1_0.studentExperimentmanagementResource import studentexperimentmanagement_blueprint
    app.register_blueprint(studentexperimentmanagement_blueprint, url_prefix="/api_1_0")
    
    # teacherStudentmanagement blueprint register
    from api_1_0.teacherStudentmanagementResource import teacherstudentmanagement_blueprint
    app.register_blueprint(teacherstudentmanagement_blueprint, url_prefix="/api_1_0")

    # studentLessonmanagement blueprint register
    from api_1_0.studentLessonResource import studentlesson_blueprint
    app.register_blueprint(studentlesson_blueprint, url_prefix="/api_1_0")

    # common blueprint register
    from api_1_0.commonResource import adminlogin_blueprint
    app.register_blueprint(adminlogin_blueprint, url_prefix="/api_1_0")

    # fileTeacherGrade blueprint register
    from api_1_0.fileTeacherGradeResource import fileteachergrade_blueprint
    app.register_blueprint(fileteachergrade_blueprint, url_prefix="/api_1_0")

    # studentGroupGrade blueprint register
    from api_1_0.studentGroupGradeResource import studentgroupgrade_blueprint
    app.register_blueprint(studentgroupgrade_blueprint, url_prefix="/api_1_0")

    # totalGrade blueprint register
    from api_1_0.totalGradeResource import totalgrade_blueprint
    app.register_blueprint(totalgrade_blueprint, url_prefix="/api_1_0")


    
